Adapt compute_display_string_pos to iteration over strings.
authorEli Zaretskii <eliz@gnu.org>
Thu, 9 Jun 2011 17:12:10 +0000 (20:12 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 9 Jun 2011 17:12:10 +0000 (20:12 +0300)
commit4b5ef74c1f426479be450931fa4758803a8e60f5
tree2c05034bf0272425c52c5d816824ed474d61618a
parentd87109796c9decaaf505cfe3c231761038f383c2
Adapt compute_display_string_pos to iteration over strings.
Just compiled, not yet tested.

 src/xdisp.c (compute_display_string_pos): First arg is now struct
 `text_pos *'; all callers changed.  Support display properties on
 Lisp strings.
 (compute_display_string_end): Support display properties on Lisp
 strings.
 (init_iterator, reseat_1, reseat_to_string): Initialize the
 string.bufpos member to 0 (zero, for compatibility with IT_CHARPOS
 when iterating on a string not from display properties).
 src/bidi.c (bidi_fetch_char): Support strings with display
 properties.
 src/dispextern.h (struct bidi_string_data): New member bufpos.
 (compute_display_string_pos): Update prototype.
src/ChangeLog
src/bidi.c
src/dispextern.h
src/xdisp.c